package 栈;

import java.util.Stack;

/**
 * @author mubei
 * @date 2021/12/21
 * @description
 */
public class Demo01栈模拟队列 {


}

class CQueue {

    Stack<Integer> a = new Stack<Integer>();
    Stack<Integer> b = new Stack<Integer>();
    public CQueue() {

    }


    public void appendTail(int value) {
        if(b.isEmpty()) {
            a.push(value);
        }else{
            b.push(value);
        }
    }

    public int deleteHead() {

      return -1;
    }
}
